derivative of an exponential equation